//
//  AppDelegate+YS.m
//  luGongPro
//
//  Created by 王庆学 on 2017/7/25.
//  Copyright © 2017年 王庆学. All rights reserved.
//

#import "AppDelegate+YS.h"
#import "YSTabBarViewController.h"
#import "YSHomePageViewController.h"
#import "UIStoryboard+YS.h"

@implementation AppDelegate (YS)

- (void)setupApplication:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
    self.window = [[UIWindow alloc]initWithFrame:[UIScreen mainScreen].bounds];
    [self setUpTab];
}

- (void)setUpTab{
    YSTabBarViewController *ysTabBar = [[YSTabBarViewController alloc]init];
    YSHomePageViewController *homePageController = [[UIStoryboard homePageStoryboard] instantiateInitialViewController];
    [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    ysTabBar.viewControllers = @[homePageController];
    self.window.rootViewController = ysTabBar;
    [self.window makeKeyAndVisible];
}

@end
